package com.yi.gostockgo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 股票
 * </p>
 *
 * @author liandyao
 * @since 2020-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GoStock extends Model<GoStock> {

    private static final long serialVersionUID=1L;

    /**
     * 股票ID
     */
    @TableId(value = "stock_id", type = IdType.NONE)
    private String stockId;

    /**
     * 股票编号
     */
    private String stockCode;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 证券公司
     */
    private String stockComp;

    /**
     * 备注
     */
    private String stockRemark;

    /**
     * 序号
     */
    private String sort;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 创建时间
     */
    private LocalDateTime creatime;


    @Override
    protected Serializable pkVal() {
        return this.stockId;
    }

}
